* {
    padding: 0;
    margin: 0;
}

html,body {
    height: 100%;
}
body {
    background-color: lightcoral;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    width: 100%;
    height: 120px;
    text-align: center;
    position: relative;
    /* height: 95px; */
    transition: .5s;
}

.main-container .text {
    font-family: 'Barlow',sans-serif;
    font-size: 60px;
    line-height: 60px;
    height: 60px;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    text-align: center;
    width: 100%;
}

.main-container .text:nth-child(1) {
    clip-path: polygon(0 0,100% 0,100% 50%,0 50%);
}
.main-container .text:nth-child(3) {
    clip-path: polygon(0 50%,100% 50%,100% 100%, 0 100%);
    transition: .5s;
    /* top: 35px; */
}
.main-container .inner-text {
    height: 0;
    overflow: hidden;
    font-family: 'Ubuntu', sans-serif;
    position: absolute;
    top: 30px;
    width: 100%;
    font-size: 30px;
    line-height: 35px;
    transition: .5s;
}
.main-container:hover {
    height: 95px;
}
.main-container:hover .inner-text {
    height: 35px;
    transform: scale(1,1);
}
.main-container:hover .text:nth-child(3) {
    top: 35px;
}